{% extends "base.html" %}

{% block title %}
	Register
{% endblock %}

{% block body %}
	<div class="col-lg-3">
		<!-- Set the form -->
		<form method="POST" action="{{ url_for('main.register') }}"> {{ form.hidden_tag() }}
			
			<div>
				{{ form.username.label }}
				
				{% if form.username.errors %} 
					{% for e in form.username.errors %}
						<p class="help-block">{{ e }}</p>
					{% endfor %}
				{% endif %}
				
				{{ form.username(class_="form-control") }}
			</div>
			
			<div class="form-group">
				{{ form.password.label }}
				
				{% if form.password.errors %} 
					{% for e in form.password.errors %}
						<p class="help-block">{{ e }}</p>
					{% endfor %}
				{% endif %}
				
				{{ form.password(class_="form-control") }}
			</div>
			
			<div  class="form-group">
				{{ form.confirm.label }}
				
				{% if form.confirm.errors %} 
					{% for e in form.confirm.errors %}
						<p class="help-block">{{ e }}</p>
					{% endfor %}
				{% endif %}
				
				{{ form.confirm(class_="form-control") }}  
			</div>
			<div>
				{{ form.accept_tos.label }} {{ form.accept_tos() }}
			</div>
			<input class="btn btn-primary" type="submit" value="Register">
		</form>
	</div>
	
{% endblock %}